<!DOCTYPE html>
<html lang="en" xmlns:p="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
</head>
<body>
<div align="center"><h1>SysOrder管理系统登录界面</h1></div>
<table class="table table-striped">
    <tr><td>id</td>
        <td>user_id</td>
        <td>total</td>
        <td>describtion</td>
        <td>goods_id:order_id:quatity</td>
    </tr>

    <tr th:each="sysOrder:${sysOrders}">
        <td th:text="${sysOrder.id}"></td>
        <td th:text="${sysOrder.userId}"></td>
        <td th:text="${sysOrder.total}"></td>
        <td th:text="${sysOrder.describtion}"></td>
        <td>
            <div th:each="sysOrdersysOrderDetail:${sysOrder.sysOrderDetails}">
                <span th:text="${sysOrdersysOrderDetail.goodsId}"/>:
                <span th:text="${sysOrdersysOrderDetail.orderId}"/>:
                <span th:text="${sysOrdersysOrderDetail.quatity}"/><br/>
            </div>
        </td>



        <td ><a th:href="@{/SysOrder/delete.do(id=${sysOrder.id})}">删除</a>
            <a th:href="@{/SysOrder/toUpdate.do(id=${sysOrder.id})}">修改</a></td>
    </tr>

</table>
<tr><a href="/SysOrder/toAdd.do">添加商品</a></tr>
</body>
</html>
